02. Recap - HTTP, Flask, and Postman

Flask API Server Recap

Recap - The material covered in this concept is a refresher and should not be new. If you've never seen this material before, it may be wise to look back on a previous course on Python, API Development or Flask.

HTTP Request-Response Handling

ND004 C03 L01 A02 Flask API Server Recap 1

HTTP Status Codes

Two status codes which are important throughout this course are:

  • 401 Unauthorized

    The client must pass authentication before access to this resource is granted. The server cannot validate the identity of the requested party.

  • ##### 403 Forbidden
    The client does not have permission to access the resource. Unlike 401, the server knows who is making the request, but that requesting party has no authorization to access the resource.

For a complete list of status codes, check out the MDN Web Docs

Flask - A Python Framework for Server Development

Flask is a popular framework for developing "microservices" or "small-in-scope" web servers. It provides all of the interfaces for you to build an HTTP server out of the box with little boilerplate. Check out the Flask docs to learn more.

We'll be using code available in the FSND repo. Follow along here .

ND004 C03 L01 A03.1 Flask And Postman Recap 1

Postman - HTTP API Development GUI

Postman provides useful tools to help you develop and test APIs. You can download and learn more at Postman's website .

ND004 C03 L01 A03.2 Flask And Postman Recap

Try It Yourself!

Task Description:

We've included all code in this concept in the following repo:
https://github.com/udacity/FSND/tree/master/FlaskRecap

Try the following:

Task List:

Task Feedback:

Good practice!